package main;

public class Calculator {
	public int sum(int x, int y) {
		
		if (x < 0 || y < 0) {
			throw new IllegalArgumentException("X and Y must be positive!");
		}
		
		return x + y;
	}
}
